The regex expressions are entered in a list using an editor. Double click with the left mouse button on a search or replace entry to activate the editor. Enter the expression and then use any of the following to save the entry:
Right clicking the mouse over the list but away from the row being edited makes other commands
available for inserting, removing, or moving rows, and for adding any of the
pre-defined or specialized renaming
commands. The same can be accomplished by pressing
SHIFT-F10 after the panel is selected.
When adding pre-defined or specialized renaming commands, the commands are placed in the "replace pattern"
column. The command sequence uses a custom syntax. The first argument is the command and the second argument is the first parameter of
the command. The arguments are delimited by "*"s. When a pre-defined command in the "replace pattern"
column, the "search
pattern" column must remain blank or the pre-defined command becomes invalid.
An exit command can also be inserted. The exit command will force the
search/replace sequence to quit at that point. This can be useful when debugging a sequence
of regular expressions.
Right clicking the mouse over the row being edited makes other options available for copying/pasting/undoing/redoing entry data.
Selected rows can be moved by clicking on the down-arrow or up-arrow icons or by dragging with a mouse. Multiple rows are selected by pressing CTRL or SHIFT at the same time as pressing the left mouse button.
The search/replace scanner will serially invoke each search/replace expression pair in sequence with the output of a search/replace pair being used as input to the following search/replace pair. The table below shows an example:
Search Pattern | Replace Pattern |
---|---|
%20 |
|
*Insert Counter Before*Extension* |
|
abc |
ABC |
*Insert Counter Before*Prefix* |
The output of the custom renaming sequence can be previewed. This is done by typing some sample text in the "Sample Name" field or dragging a file/folder icon into the field. Then press the "Update Preview" button. The custom renaming sequence will then be applied to the sample text and output to the "Preview" field. The renaming will be applied as follows:
The contents of the custom list can be saved and retrieved using the Load/Save buttons. Up to three sets of lists can be saved and retrieved in this way.
When restarting PFrank, the list entries, the preview sample text, and the three sets of lists will be restored to what they were before.
If you move the mouse between the bottom of the custom renaming panel and the top of the summary panel (see next section), you will find a sash which can be used to control the height of the summary panel.